<?php

namespace App\Models\Article;

use App\Models\Common\CommonModel;
use App\Models\User\User;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class ArticleOrder extends CommonModel {
    use HasFactory;
    protected $table = 'article_order';

    public function getUser() {
        return $this->hasOne(User::class,'id','user_id');
    }

    public function getArticle() {
        return $this->hasOne(ArticleInfo::class,'id','article_id');
    }

}
